package com.star.mapper;


import com.star.pojo.Blog;
import com.star.vo.BlogQueryVo;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;


/**
 *  博客持久层接口
 */
@Mapper
@Repository
public interface BlogMapper {

    List<Blog> getAllBlog();

    List<Blog> BlogList();

    List<BlogQueryVo> SearchBlog(BlogQueryVo blogQueryVo);

    Blog getBlogById(Long id);

    int saveBlog(Blog blog);

    int updateBlog(Blog blog);

    void deleteBlog(Long id);

}